Skip to content

feat(window): finish the library window so nothing moves (0.8.0) - #7

Merged
nodemode-ai merged 45 commits into
mainfrom
feat/library-window-0.8.0
Nov 27, 2026
Merged

nodemode-ai merged 45 commits into
mainfrom
feat/library-window-0.8.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

feat(window): finish the library window so nothing moves (0.8.0)

Summary

  • The library window now meets its exit test: with 2,000 items, sorting, filtering, selecting and editing show no layout shift under a slowed processor and network.
  • New in the window: collections inside collections, keyboard movement in the collection tree, notes you can add, edit and delete, a dropped PDF identified in a browser through a new upload route, and approved connections that wait to be collected, with a way to withdraw the approval.
  • Adding, restoring or removing an item now writes only the rows that move. A new engine route answers where a row falls in the current sort and filter, so the list no longer reads a page again. One case still re-reads: removing an item the list never loaded.
  • Fixed shifts and their causes: the side pane's status line took a row when the lists filled (the sections are now held until the first read); new Preferences rows were created empty and filled on the next load (they are filled when made, on fixed line heights); the trash button's content moved when its label changed (the label box is sized for the longer label); merged duplicate groups were removed only when the answer arrived (they leave at the click and come back if refused).
  • A dropped PDF that is already attached to the matched item is not attached a second time.
  • The readme's network section now names the window and the agent lookup tools, and says Preferences holds the switches.

Commits

45 commits, release commit last. No hashes, since they change when signed. By area: side pane 6 · item pane and notes 6 · connections, pairing and service tokens 8 · item list and the position route 5 · upload and identify 7 · preferences 2 · trash and duplicates 1 · docs for the window and network 5 · logs 3 · readme 1 · release 1. By type: feat 17, fix 8, docs 19, chore 1.

Version

v0.8.0 (release commit is last). Moved: frontend/package.json, both fields in frontend/package-lock.json, frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml and its entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the three files of native/formcite-style, the "Current build version" line in four logs, and a new section in CHANGELOG.md.

Checks

Run by the orchestrator at the head: the engine and command line import; the style regression set, twelve PASS; the window type check. Each of the 44 commits before the release commit was checked out in a copy and imported: 44 of 44. Scans over the new commits: one author and committer, offset -0500, no attribution words, no merge commit, no test file, no em dash or emoji in changed markdown, no raw z-index.

Run by the orchestrator once, in a private built copy served by the engine, 2,000 imported items, processor slowed 4x, 400 ms latency at about 400 kbit/s, cache off, cold load: sort by each of five columns and once reversed, filter to 458 of 2,000 and clear, select a row, six arrow keys, edit a title (its row updated), scroll. Layout-shift entries: 0 without input, 0 with input. Row pool 55 at start and end. No page error, no failed request, no response of 400 or above. The window key is handed out once per engine run, so a cold load with an empty cache was used where a hard reload is meant.

Run by agents only, in private built copies under the same throttling: side pane first fill 0 (was 0.008 to 0.014), subcollection create 0, tree keys, delete and rename with focus kept; Preferences 0 on load, create and switch (was 0.00036), library switch end to end; item pane buttons, empty title refusal, notes kept after a reload; the dropped PDF route and its refusals (415, 413, 403); list add, restore and remove at a scrolled position in two sorts and with a filter, with a request trace showing no page re-read; connections ask, approve, wait, collect, withdraw; trash and duplicates 0 without input (a merge was 0.1498 before the fix).

Not run: the desktop shell (it has never been compiled); the CI workflow for these commits; the tag list with real tags; creator editing (not built); "Open in FormPDF" beyond its fallback to the system viewer; the upload route's desktop path branch; a failed restore or delete putting its row back.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

The group is registered with no routes yet, so the slice that fills it changes one file.
The upload route checks the pdf magic bytes and a 100 MB cap, writes a temporary file and runs the same identify as the path route with the file copied in.
… messages

The side sections stay hidden until collections, tags and totals have loaded once, and an empty status line takes no row, so the message no longer moves when the lists fill or change.
The item pane no longer sends an empty title; it shows the refusal in the pane's error line and marks the row.
The trash label reserves the width of its longer label and starts at the left, so the icon and text do not move on the first click.
A window-key route returns approved pairing requests that still wait for the app to collect them. Withdrawing is not offered because the store cannot un-approve a request.
identifyUpload posts the file with the window key, and the engine identify takes either a path or a file.
…place

A dropped pdf uses the upload route unless the desktop shell gives a real path, and progress and the result go to the import line, which keeps its reserved height.
Each collection row gains a new subcollection action that opens the name field and posts the row as parent_id, which the engine already accepts.
On itemsRemoved the list now drops the ids from the cached order, shifts the rest up and fetches only the missing rows that land in the window, instead of re-reading pages.
The connections engine reads the approved-and-waiting list with the other two lists and emits add, update and remove for each waiting request.
A third group in the Connections view lists each approved request as Approved, waiting for the app to collect, in rows of the same fixed height. The row has no withdraw action because the store cannot take an approval back.
The collection list is now an aria tree with one roving tab stop; arrows move between visible rows, left and right fold, unfold or step to parent and child, and Enter selects.
On itemsAdded and itemsRestored the list fetches each row, guesses its place from the cached rows and confirms it with one nine-row probe of the rows route, then shifts and writes only the changed pool rows.
Documents the window-only list of approved requests the app has not collected and that the window cannot withdraw them.
Records why the waiting list exists, how the route guards itself and what was measured.
The identify guide now names the upload route, its checks and limits, and how a dropped pdf reaches it.
Records why no multipart dependency is needed, how the name is cleaned and the repeated attach on a second drop.
Records the first-read hold, the subcollection action and the tree keyboard contract, with the measured shift.
New rows were born empty because the list patch only updates rows that already exist, so text arrived on the next load and moved the row. Rows now fill at creation and every text line has a fixed height.
Rows leave the list at the click so the shift belongs to the input, and a failed call puts them back. Delete for good drops its confirmation after 3 seconds, and the trash reloads while hidden so reopening inserts nothing.
An approved request with no token can be withdrawn and ends as denied, through a window-only route beside approve and deny.
When the matching item already holds an attachment with the file's sha256, that attachment is returned and the message says nothing was changed.
The no-background rule now names the three identify routes and says start-up and window polling stay on this computer. Added how Preferences lists the services.
… updates

Brings the window page up to the code: subcollection button, tree keyboard, dropped PDF bytes, single-row list changes, the waiting group in Connections, and the trash and merge behaviour.
The waiting row carries a Withdraw approval button that calls the new route and removes only that row.
Notes how remove and insert keep the item list in place and when they fall back to a re-read.
Records what was measured and why rows leave at the click.
The guide now explains that an identical file on the matched item is reused and nothing is changed.
The upload entry now says how a repeated drop is detected and that all three callers share it.
Describes the withdraw route and that the app's next poll answers denied.
Records why rows now fill at creation, the measured shift, and that the seven listed services match the backend.
Records the empty title refusal, the trash label width and the throttled check of remove tag, open and trash.
When the deleted collection or tag held focus, focus moves to the next row at the same or a higher level, else the previous one, else the add button or the first fixed row, so it is never lost to the body.
GET /api/library/rows/{id}/position returns the index and total of one item under the rows route's scope, filter and ordering, ranked in SQL with the same tie-break.
…he switches are

The network section named only the command line; the window's add and drop, the agent lookup tools and the Preferences list are now named as well.
The detail io and model can now add, edit and delete an item's notes through the engine's note routes.
Notes are edited in place inside the fixed notes box, added from a line below it and deleted with a second click, with a reserved error line.
Insert now asks the engine for the row's index under the current scope, filter and sort instead of guessing and probing, and re-reads only when the route is missing on an older engine.
The second delete click hides the row and its subtree at once and restores them if the engine refuses, so the rows below move with the input; Enter in a rename returns focus to the row.
Notes how the position route matches the rows route ordering and when it answers minus one.
Adds that insert asks the engine for the index and re-reads only on an older engine.
Records the note routes the pane uses, the save and delete behaviour and the throttled check.
Each added line was checked against the landed code: note editing, the empty-title refusal, withdrawing an approval, no double attach, the position route and the collection delete.
Moves every version site to 0.8.0 and adds the changelog section.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 27, 2026 18:15
@nodemode-ai
nodemode-ai merged commit f08260f into main Nov 27, 2026
2 checks passed
@nodemode-ai
nodemode-ai deleted the feat/library-window-0.8.0 branch November 27, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant